package com.fz.controller.project;

import com.fz.aop.login.AnonymousAccess;
import com.fz.common.ResponseEntity;
import com.fz.beans.IdBeans;
import com.fz.beans.PageBeans;
import com.fz.dto.project.projectPartMap.ProjectPartMapAdd;
import com.fz.dto.project.projectPartMap.ProjectPartMapQuery;
import com.fz.dto.project.projectPartMap.ProjectPartMapUpd;
import com.fz.service.project.ProjectPartMapService;
import com.fz.vo.project.projectPartMap.ProjectPartMapVo;
import io.swagger.annotations.*;
import org.springframework.web.bind.annotation.*;

import javax.annotation.Resource;

/**
 * @author :xmj
 * @date :2021/3/25 下午5:50
 */
@RestController
@Api(value = "项目标段映射关系", tags = "项目标段映射关系")
@RequestMapping("/projectPartMap")
@CrossOrigin
@SuppressWarnings("unchecked")
public class ProjectPartMapController {
    @Resource
    private ProjectPartMapService projectPartMapService;


//    @GetMapping("/findProjectPartMapList")
//    @ApiOperation(value = "查询项目标段映射关系分页")
//    @AnonymousAccess
//    public ResponseEntity<ProjectPartMapVo> findProjectPartMapList(ProjectPartMapQuery ProjectPartMapQuery, PageBeans pageBeans) {
//        return projectPartMapService.findProjectPartMapList(pageBeans.getPageNum(), pageBeans.getPageSize(), ProjectPartMapQuery);
//    }
//
//    @PostMapping("/saveProjectPartMap")
//    @ApiOperation(value = "新增项目标段映射关系")
//    @AnonymousAccess
//    public ResponseEntity<ProjectPartMapVo> saveProjectPartMap(@RequestBody ProjectPartMapAdd ProjectPartMapAdd) throws Exception {
//        return projectPartMapService.saveProjectPartMap(ProjectPartMapAdd);
//    }
//
//    @PostMapping("/updateProjectPartMap")
//    @ApiOperation(value = "修改项目标段映射关系")
//    @AnonymousAccess
//    public ResponseEntity<ProjectPartMapVo> updateProjectPartMap(@RequestBody ProjectPartMapUpd ProjectPartMapUpd) throws Exception {
//        return projectPartMapService.updateProjectPartMap(ProjectPartMapUpd);
//    }
//
//    @PostMapping("/delProjectPartMap")
//    @ApiOperation(value = "删除项目标段映射关系")
//    @AnonymousAccess
//    public ResponseEntity<ProjectPartMapVo> delProjectPartMap(@RequestBody IdBeans idBeans) throws Exception {
//        return projectPartMapService.delProjectPartMap(idBeans.getIds());
//    }
}
